<p>&nbsp;</p>
<%= form_remote_tag :url=>{:controller=>"view",:action=>"updateuser"},:update=>"user",
					:loading => %{window.document.getElementById('modifyuser').innerHTML='<div align="right" class="meddeepblue"><img src="/images/progress.gif"/>&nbsp;<strong>正在修改您的资料...<strong></div>'},
					:complete => "alert('用户信息修改完成')"%>
<table border="0" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="120" height="32" class="medblack">
		<li>用户名：</li>
		</td>
		<td height="32" class="medgray"><%= text_field 'user', 'name',:size=>"20", 
                                        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
                                        :onMouseOut=>"this.style.backgroundColor = '';"%>&nbsp;&nbsp;(&nbsp;
		<%= link_to_remote "请确保用户名未被他人使用着", :update => 'check',:url=>{:controller=>"view", :action => "checkuser"},:with=>"'name='+$F('user_name')"%>
		)</td>
	</tr>
	<tr>
		<td width="120" height="32" class="medblack" valign="top">
		<li>职业目标：</li>
		&nbsp;&nbsp;&nbsp;&nbsp;(150字以内)</td>
		<td height="32"><%= text_area 'user', 'objects',:style=>"width:300px;height:100px"%>
		</td>
	</tr>
	<tr>
		<td width="120" height="32" class="medblack" valign="top">
		<li>兴趣爱好：</li>
		&nbsp;&nbsp;&nbsp;&nbsp;(150字以内)</td>
		<td height="32"><%= text_area 'user', 'interests',:style=>"width:300px;height:100px"%></td>
	</tr>
	<tr>
		<td width="120" height="32" class="medblack">
		<li>是否公开资料：</li>
		</td>
		<td height="32" class="medblack">&nbsp;是&nbsp; <%unless user.anonymous -%>
		<%= radio_button 'user', 'anonymous', 0 , :checked=>1 %> &nbsp;否&nbsp;<%= radio_button 'user', 'anonymous', 1 %>
		<%else -%> <%= radio_button 'user', 'anonymous', 0  %> &nbsp;否&nbsp;<%= radio_button 'user', 'anonymous', 1 , :checked=>1%>
		<%end -%> &nbsp;&nbsp;(&nbsp;<a href="javascript:openDeclaration()">网站申明</a>
		)</td>
	</tr>
	<tr>
		<td id="check">&nbsp;</td>
		<td align="right" width="430"><%= submit_tag " 更 新 ",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%><%= end_form_tag%></td>
		<td align="right" class="medblack"><%= form_remote_tag :url=>{:controller=>"view",:action=>"hideuser"},:update=>"modifyuser"%>
		&nbsp;<%= submit_tag " 取 消 ",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%><%= end_form_tag %></td>
	</tr>
</table>
